home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / ufo_comm.swf / scripts / DefineSprite_26_s4 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-04-25  |  1.9 KB  |  81 lines

  1. var ┬º\x01┬º = 921;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 921)
  5.    {
  6.       set("\x01",eval("\x01") - 372);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") == 330)
  12.       {
  13.          set("\x01",eval("\x01") + 609);
  14.          stop();
  15.          ┬º┬ºpush(┬º┬ºpop() + 1);
  16.          break;
  17.       }
  18.       if(eval("\x01") == 939)
  19.       {
  20.          set("\x01",eval("\x01") - 614);
  21.          this.speed = 1;
  22.          this.counter = 0;
  23.          this.rotatie = random(10) + 2;
  24.          gAcc = new Array();
  25.          gAcc = [0,0.01,0.03,0.04,0.06];
  26.          i = random(4);
  27.          acc = gAcc[i];
  28.          this.onEnterFrame = function()
  29.          {
  30.             if(this._y <= 550 && !_root.sol.hitTest(this._x,this._y,true))
  31.             {
  32.                this._rotation -= this.rotatie;
  33.                this.speed *= 1.01 + acc;
  34.                this._y += this.speed;
  35.             }
  36.             else if(this.counter == 0)
  37.             {
  38.                this.gotoAndPlay("glow");
  39.                this.counter = 1;
  40.             }
  41.          };
  42.          break;
  43.       }
  44.       if(eval("\x01") == 549)
  45.       {
  46.          set("\x01",eval("\x01") - 284);
  47.          if(┬º┬ºpop())
  48.          {
  49.             set("\x01",eval("\x01") + 538);
  50.          }
  51.       }
  52.       else if(eval("\x01") == 0)
  53.       {
  54.          set("\x01",eval("\x01") + 330);
  55.          if(┬º┬ºpop())
  56.          {
  57.             set("\x01",eval("\x01") + 609);
  58.          }
  59.       }
  60.       else
  61.       {
  62.          if(eval("\x01") != 803)
  63.          {
  64.             if(eval("\x01") == 325)
  65.             {
  66.                set("\x01",eval("\x01") - 325);
  67.                break;
  68.             }
  69.             if(eval("\x01") == 265)
  70.             {
  71.                set("\x01",eval("\x01") + 538);
  72.                duplicateMovieClip(┬º┬ºpop(),┬º┬ºpop(),┬º┬ºpop() >>> ┬º┬ºpop());
  73.             }
  74.             break;
  75.          }
  76.          set("\x01",eval("\x01") - 803);
  77.          ┬º┬ºpush(true);
  78.       }
  79.    }
  80. }
  81.